package com.fadadianqi.mall.product.model;

import com.fadadianqi.commons.BaseObject;

/**
 * 属性关联表
 *
 * 为了区分属性适合分类管理还是和SPU关联
 *
 * Created by aroot on 2/12/14.
 */
public class AttrRelation extends BaseObject {

    public static final int TYPE_NAV = 0x0001;
    public static final int TYPE_SPU = 0x0002;
    public static final int TYPE_SKU = 0x0003;

    private String relationId; // 与那张表关联就记录那张表的主键(id)
    private String attrNameId;
    private int type = TYPE_NAV;
    private int orderby = 0;
    private Boolean isMultiple = Boolean.FALSE; // 是否为多选
    private Boolean isSale = Boolean.FALSE; // 是否是销售属性，这将影响商品SKU。
    private Boolean isRequired = Boolean.FALSE; // 是否为必选
    private Boolean isImage = Boolean.FALSE; // 是否有图片

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Boolean getIsImage() {
        return isImage;
    }

    public void setIsImage(Boolean isImage) {
        this.isImage = isImage;
    }

    public Boolean getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(Boolean isRequired) {
        this.isRequired = isRequired;
    }

    public int getOrderby() {
        return orderby;
    }

    public void setOrderby(int orderby) {
        this.orderby = orderby;
    }

    public Boolean getIsMultiple() {
        return isMultiple;
    }

    public void setIsMultiple(Boolean isMultiple) {
        this.isMultiple = isMultiple;
    }

    public Boolean getIsSale() {
        return isSale;
    }

    public void setIsSale(Boolean isSale) {
        this.isSale = isSale;
    }

    public String getAttrNameId() {
        return attrNameId;
    }

    public void setAttrNameId(String attrNameId) {
        this.attrNameId = attrNameId;
    }
}
